'''
Created on 2009-9-14

@author: loudly
'''
# models.py

from google.appengine.ext import db
from google.appengine.ext.db import polymodel

class Game(polymodel.PolyModel):
    name = db.StringProperty(required = True)
    startTime = db.DateTimeProperty(auto_now_add = True)
    gameType = db.StringProperty(required = True)
    players = db.ListProperty(unicode)
    finished = db.BooleanProperty(default = False)
    roundsForNow = db.IntegerProperty(default = 0)

class Round(polymodel.PolyModel):
    name = db.StringProperty()
    startTime = db.DateTimeProperty(auto_now_add = True)
    players = db.ListProperty(unicode)
    roundNumber = db.IntegerProperty()
    finished = db.BooleanProperty(default = False)
    roundsForNow = db.IntegerProperty(default = 0)